package com.hz.lowb.nami.base.service;

import com.hz.lowb.nami.base.dto.User;
import com.hz.lowb.nami.base.service.api.IUserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by tfw2302 on 2017/1/11.
 */
@Service
//@Transactional(isolation = Isolation.DEFAULT,propagation = Propagation.REQUIRED)
public class UserService implements IUserService {

    @Override
    public User getById(Long id) {
        User user = new User();
        user.setUserId(1L);
        user.setUserName("铁神");
        user.setUserMobile("18768171164");
        return user;
    }

}
